"""数据库服务模块"""

from .db_service import DatabaseService, db_service
from .models import (
    Base,
    Detection,
    Tracking,
    Violation,
    Alert,
    Camera,
    SystemLog,
    User,
    Config
)

__all__ = [
    'DatabaseService',
    'db_service',
    'Base',
    'Detection',
    'Tracking',
    'Violation',
    'Alert',
    'Camera',
    'SystemLog',
    'User',
    'Config'
]

# 提供数据库服务的快捷访问方法
def get_db_service() -> DatabaseService:
    """获取数据库服务实例的快捷方法"""
    return db_service